Skip to content

Conversation

@martincostello
Copy link
Owner

Add an action that runs Lighthouse against the root page of the website to check for any issues.

Add an action that runs Lighthouse against the root page of the website to check for any issues.
Remove the -WindowStyle flag.
@codecov
Copy link

codecov bot commented Jun 3, 2022

Codecov Report

Merging #1040 (baffce6) into main (4a10ab2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1040   +/-   ##
=======================================
  Coverage   90.15%   90.15%           
=======================================
  Files          50       50           
  Lines         823      823           
=======================================
  Hits          742      742           
  Misses         81       81           
Flag Coverage Δ
linux 90.15% <ø> (ø)
macos 90.15% <ø> (ø)
windows 90.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Website/Pages/Shared/_Scripts.cshtml 57.14% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a10ab2...baffce6. Read the comment docs.

Set a number of configuration options to use.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device URL
desktop https://localhost:5001

Device URL
mobile https://localhost:5001

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

Audit the production website to test a theory.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device URL
desktop https://martincostello.com

Device URL
mobile https://martincostello.com

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

Audit the local site again, as auditing production didn't work either.
Upload the Lighthouse report to the artifacts.
Just in case, normalize the path separators for Linux.
Request the URL before running Lighthouse.
Try and see what might be failing when the process starts.
Run the process as-is, rather than as a new process.
Add missing space in command.
Run dotnet dev-certs to configure the HTTPS certificate.
Run the server as a new process again.
Run on Windows instead of Linux to make it easier to persist the dotnet process.
Try and keep the child process alive to run the server.
Add a sleep to see if it's just not started yet.
Ignore warning for self-signed TLS certificate.
Parameterise the URL to test.
Refactor the code to check for the website being running.
Fix casing to see if that's why it failed.
Remove Out-Null in case it's losing the response.
Use environment variable again for the website URL.
Use a literal as the variable doesn't seem to work.
Generate the certificate automatically.
Fix report not being output.
Ensure the directory to put the reports in exists.
Hide the output from creating the report directory.
Build the CSS and JavaScript.
Use npm ci instead of npm install.
@martincostello martincostello marked this pull request as ready for review June 4, 2022 11:56
@martincostello martincostello enabled auto-merge June 4, 2022 11:57
@martincostello martincostello merged commit c26c8d3 into main Jun 4, 2022
@martincostello martincostello deleted the lighthouse-audit branch June 4, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants